var router = require('../routes/router');
var db = require('../exts/db/database.js');

router.get('/test', function(req, res) {
	//var sql = `SELECT *
	//          FROM sys_user`;
	
	var sql = `insert into test (name) values ('meryl')`;

	db.beginTrans();
	db.exec(sql,function(err,data){
		db.commit();
		res.json(data);
	})
});


module.exports = router;
